package com.ymatou.iapi.withdraw.service;

import net.sf.json.JSONObject;

import com.ymatou.iapi.coupon.parameter.GetProductAvailablePlatformCouponResp;
import com.ymatou.iapi.withdraw.parameter.ExportWithDrawInvoiceBean;
import com.ymatou.iapi.withdraw.parameter.withDrawInvoiceListResp;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*导出--买家/买手提现单线下打款Call
*FreeMaker Template自动生成代码
*/
public class ExportWithDrawInvoiceCall extends YmatouBaseCall{
	private static String opurl ="/api/WithDrawPayout/ExportWithDrawInvoice";
	
	public ExportWithDrawInvoiceCall() {
		super(EnvSetup.getSystemUrl("withdraw_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	 public String getSuccess()
	    {
	        return getString("Success");
	    }

	    public String getCode()
	    {
	        return getString("Code");
	    }
	    public String getBCode()
	    {
	        return getString("BCode");
	    }
	    
	    public String getMsg()
	    {
	        return getString("Msg");
	    } 
	     
	    public withDrawInvoiceListResp getWithDrawInvoiceListResp()
	    {
	    	return (withDrawInvoiceListResp) FormatUtil.GSONToObject(getString("Data"),
	    			withDrawInvoiceListResp.class);
	    	
	    }
}